<?php
/**
 * Author: Administrator
 * Date: 2022/8/4 1:09
 */

namespace DesignPatterns\Behavioral\Visitor;

class Edge extends AbstractEntity
{
    private $position;

    public function __construct($position)
    {
        $this->position = $position;
    }

    protected function EntityType(): string
    {
        return 'Edge';
    }

    public function getPosition()
    {
        return $this->position;
    }
}